package com.example.teachmvandroidchart.Adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.teachmvandroidchart.R
import com.example.teachmvandroidchart.data.DataServer
import com.example.teachmvandroidchart.util.Status
import java.util.ArrayList


open class LogListAdapter(var list: ArrayList<Map<String, Any>>)  :
    BaseQuickAdapter<Status, BaseViewHolder>(
        R.layout.item_layout,
        DataServer.getSampleData(list.size)
    ) {
    override fun convert(holder: BaseViewHolder, item: Status) {

        holder.setText(R.id.textView, list[holder.layoutPosition]["Value"].toString())


    }


}